﻿using System;
using System.Windows.Forms;
using System.IO;
using System.Drawing;

namespace BigEaterCh
{
  public class FormZywienie: Form
  {
    public FormZywienie()
    {
      DoubleBuffered = true;
      SetStyle(ControlStyles.AllPaintingInWmPaint, true);
      SetStyle(ControlStyles.UserPaint, true);
      SetStyle(ControlStyles.ResizeRedraw, true);
      SetStyle(ControlStyles.OptimizedDoubleBuffer, true);

      string iconPath = Path.Combine(Application.StartupPath, "Ikona.ico");
      if( File.Exists(iconPath) )
      {
        try
        {
          Icon = new Icon(iconPath);
        }
        catch( Exception ex )
        {
          MessageBox.Show(this, ex.Message, @"Nie mogę załadować ikony "+iconPath, MessageBoxButtons.OK, MessageBoxIcon.Warning);
        }
      }

    }

    private void InitializeComponent()
    {
      this.SuspendLayout();
      // 
      // FormZywienie
      // 
      this.ClientSize = new System.Drawing.Size(284, 262);
      this.Name = "FormZywienie";
      this.ResumeLayout(false);

    }

  }
}